package sf.model.fields;

import java.text.NumberFormat;

import javax.swing.JFormattedTextField;

@Deprecated
public class NumberField extends JFormattedTextField implements Field {

	private static final long serialVersionUID = 1L;

	public NumberField(String name, int columns) {
		super(NumberFormat.getIntegerInstance()); // new Locale("sr", "RS")
		setName(name);
		setColumns(columns);
	}

	public void clear() {
		setValue(null);
	}
}
